<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<?php echo $this->_baseUrl;?>/public/css/reset.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo $this->_baseUrl;?>/public/css/main.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo $this->_baseUrl;?>/public/css/layout.css"/>
<script language="javascript" src="<?php echo $this->_baseUrl;?>/public/js/jquery-1.6.2.min.js"></script>
<title><?php echo $this->title;?></title>
</head>
<body>
 <div id="wrapper">  
   <div id="main-content">        
        
         <div id="content">
       		<link rel="stylesheet" type="text/css" href="<?php echo $this->_baseUrl;?>/public/css/user.css"/>
            <script>
               $(document).ready(function(){ 
                   $('.formLogin').css('margin-top',function(){
                      var margin_top = $(window).height()/2 - 215;
                    return margin_top+'px';
                   });   
               });
            </script>
            <div class="formLogin">
             <div class="formLogin_head">
              <h3>ĐĂNG NHẬP HỆ THỐNG ADMIN</h3>
             </div>
             <div class="formLogin_body">
                <form id="login" action="<?php echo $this->_baseUrl;?>/admin/login" method="post">
                  <?php
                  if ($this->status == 0)
                  {   
                  ?>
                  <p>
                      <span style="color:#FF0000;font-weight:bold;">
                            <img src="<?php echo $this->_baseUrl;?>/public/images/web/error.png" width="32" height="32" style="float:left; margin-right:0px;"/>
                            Tên tài khoản và mật khẩu không chính xác
                      </span>
                  </p>
                  <?php
                  }
                  ?>
                  <p>
                     <label>Tên tài khoản</label>
                     <input type="text"  id="username" name="username" maxlength="30" value="<?php echo $this->input_username;?>"/>      
                    
                           
                  </p>
                  <p>
                     <label>Mật khẩu</label>
                     <input id="password" name="password" type="password" maxlength="30"/>            
                  </p>
                  <p>
                     <button class="button" id="loginButton" name="loginButton" type="submit"> Đăng nhập </button>
                     <button class="button" id="resetButton" name="resetButton" type="reset">  Hủy</button>
                  </p>
                </form>
             </div>
            </div>
        </div>
        
   </div>
 </div>
</body>
</html>